package myown

/**
 * ClassName:CInterator
 * Package:com.baidun.jbcs.interator
 * Description:
 * 迭代器接口
 *
 * @date: 2021/8/10 9:33
 * @author: Wang Wanquan
 * @mail WongWonquanMail@gmail.com
 */
interface CIterator<T> {

    var executeResult: ExecuteResult
    var message:String

    /**
     * 初始化迭代器
     */
    fun init(t:T)
    /**
     * 执行方法
     */
    fun execute(t:T)
}

sealed class ExecuteResult{
    object Success: ExecuteResult()
    object Failed: ExecuteResult()
    object Canceled: ExecuteResult()
    object UnStart: ExecuteResult()
}